package org.jeecg.modules.inspection.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.system.entity.BaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 巡检项
 * @Author: jeecg-boot
 * @Date:   2019-09-19
 * @Version: V1.0
 */
@Data
@TableName("set_inspection_item")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="set_inspection_item对象", description="巡检项")
public class InspectionItem extends BaseEntity {
    
	/**主键*/
	@TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键")
	private java.lang.String id;
	/**巡检项名称*/
	@Excel(name = "巡检项名称", width = 15)
    @ApiModelProperty(value = "巡检项名称")
	private java.lang.String name;
	/**应用级别(0:全公司 1:分公司 2:管理处/项目)*/
	@Excel(name = "应用级别(0:全公司 1:分公司 2:管理处/项目)", width = 15)
    @ApiModelProperty(value = "应用级别(0:全公司 1:分公司 2:管理处/项目)")
	@Dict(dicCode = "use_level")
	private java.lang.Integer useLevel;


	/**公司id*/
	@Excel(name = "公司id", width = 15)
    @ApiModelProperty(value = "公司id")
	@Dict(dicCode = "id",dicText = "depart_name",dictTable = "sys_depart")
	private java.lang.String companyId;
	/**管理处id*/
	@Excel(name = "管理处id", width = 15)
    @ApiModelProperty(value = "管理处id")
	@Dict(dicCode = "id",dicText = "depart_name",dictTable = "sys_depart")
	private java.lang.String officeId;
	/**是否默认是默认项(0:是,1:不是)*/
	@Excel(name = "是否默认是默认项(0:是,1:不是)", width = 15)
    @ApiModelProperty(value = "是否默认是默认项(0:是,1:不是)")
	@Dict(dicCode = "default_flg")
	private java.lang.Integer isDefault;
	/**权重*/
	@Excel(name = "权重", width = 15)
    @ApiModelProperty(value = "权重")
	private java.lang.Integer weight;

	/**createBy*/
	@Excel(name = "createBy", width = 15)
    @ApiModelProperty(value = "createBy")
	private java.lang.String createBy;
	/**createTime*/
	@Excel(name = "createTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
	private java.util.Date createTime;
	/**updateBy*/
	@Excel(name = "updateBy", width = 15)
    @ApiModelProperty(value = "updateBy")
	private java.lang.String updateBy;
	/**updateTime*/
	@Excel(name = "updateTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
	private java.util.Date updateTime;
	/**删除标记*/
	@Excel(name = "删除标记", width = 15)
    @ApiModelProperty(value = "删除标记")
	private java.lang.String delFlag;
	@TableField(exist = false)
	private String replaceId;
	@TableField(exist = false)
	private  InspectionAreaItem inspectionAreaItem;
 }
